package ext.wxcp.invocation;

import ext.wxcp.WxCpContext;
import ext.wxcp.WxCpInvocation;
import models.enums.WxcpAppType;
import ext.wxcp.anno.MatchAppType;
import me.chanjar.weixin.cp.bean.WxCpXmlOutMessage;

/**
 * 发送文本1，返回一段测试文字.
 */
@MatchAppType(WxcpAppType.WY)
public class WelcomeInvocation extends WxCpInvocation {
    @Override
    protected WxCpXmlOutMessage doExecute(final WxCpContext context) {
        sendAsyncTextMessage("测试加密2消息");
        return null;
    }

    @Override
    protected boolean matchText(String content) {
        return "1".equals(content);
    }

}
